print up to 2 decimal in java

66

print up to 2 decimal in java -

System.out.printf("%.2f", value);

Comments

Submit
0 Comments